﻿package com.crl.core.config.section.handler
{
	import flash.utils.Dictionary;
	
	/**
	 * 
	 * 单节点中的属性与值的对应表;
	 * @author crl
	 */
	public class SingleTagSectionHandler implements IConfigSectionHandler
	{
		
		public function SingleTagSectionHandler() 
		{
			
		}
		
		
		public function create(sectionNode:XML):Object {
			var keyvalues:Dictionary;
			
			for each(var attribute:XML in sectionNode.attributes()) {
				keyvalues[attribute.name] = attribute.value;
			}
			
			return keyvalues;
		}
	}

}